<meta charset="UTF-8">
<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 * @todo 把相应的字段写入到数据库中
 */
?>
<?php
 session_start();
 include("top.php");
?>
                    <script type="text/javascript">
                        function check_ipt(form){
			   if(form.name.value==""){
				  alert("请输入收货人姓名!");
				  form.name.select();
				  return(false);
				}
				if(form.address.value==""){
				  alert("请输入收货地址!");
				  form.address.select();
				  return(false);
				}
				return(true);
			}
                    </script>
<table width="766" height="438" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="209" height="438" valign="top"><div align="center">
      <?php include("left.php");?>
      </div></td>
    <td width="557" align="center" valign="top" bgcolor="#FFFFFF">
      <table width="557" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="6">&nbsp;</td>
        </tr>
      </table>
      <table width="530" border="0" align="center" cellpadding="1" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#B0E0E6">
      <tr>
        <td height="25" bgcolor="#B0E0E6"><div align="center">收货人信息</div></td>
      </tr>
      <tr>
        <td height="295"><table width="530" height="293" border="0" align="center" cellpadding="0" cellspacing="1">

            <form name="form1" method="post" action="payorder.php" onSubmit="return check_ipt(this)">
              <tr>
                <td height="25" bgcolor="#FFFFFF"><div align="center">收货人姓名：</div></td>
                <td height="25" bgcolor="#FFFFFF"><div align="left">
                    <input type="text" name="name" size="20">
                </div></td>
              </tr>
              <tr>
                <td height="25" bgcolor="#FFFFFF"><div align="center">收货地址：</div></td>
                <td height="25" bgcolor="#FFFFFF"><div align="left">
                    <input name="address" type="text" size="20">
                </div></td>
              </tr>
              <tr>
                <td height="25" bgcolor="#FFFFFF"><div align="center">送货方式：</div></td>
                <td height="25" bgcolor="#FFFFFF"><div align="left">
                    <select name="shfs">
                      <option selected value="普通平邮">普通平邮</option>
                      <option value="特快专递">特快专递</option>
                      <option value="送货上门">送货上门</option>
                    </select>
                </div></td>
              </tr>
              <tr>
                  <td height="22" colspan="2" bgcolor="#FFFFFF"><div align="center">
                    <input name="submit2" type="submit" value="提交订单">
                    &nbsp;&nbsp;&nbsp;
                    <!--
                        这**学校简直了!
                        就差直接规定程序截图规定要填写什么内容了...
                        为了毕业设计的工作量考核，真的也是无语了...
                    -->
                    <a href="cart.php"><input name="cancel" type="button" value="取消订单"></a>
                </div></td>
              </tr>
            </form>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<?php
 include("bottom.php");
?>
